Refactors

Works on heroku and added mvc pattern with comments