erased empty function
added models
cleaned up web.js with bugs removed