The Canonization of Scripture (Seminary Notes)

How did we get our Bible? In the early days of the church, there were more letters and documents than just the 27 in our New Testament. Why are they not included?