deleted more unused files. Added the user model and some functions in the controller