added config for heroku
Removed some extraneous code