Not to discourage further answers, but if you look in the 'frequently asked questions' section on this subreddit, there's a useful section related to questions about the Bible. In particular, /u/zosim's detailed answer - listed in the FAQ - about how the compilers of the Bible decided what to include should answer your second question.