added some methods for models
added a few more methods to model and rearranged some comments
moved some stuff around, changed a few comments and added some methods