While waiting for other answers, consider reading the FAQ answers by /u/bigbluepanda and /u/ParallelPain.
https://www.reddit.com/r/AskHistorians/comments/52sewz/was_the_way_of_bushido_ever_documented_in_a_book/
https://www.reddit.com/r/AskHistorians/comments/4rte1l/were_samurai_generally_honorable/d54202b/