removing some old lines
updating models
adding routes and refactoring methods