added teachersdata, and got most of the data out in the main