Changes to work in heroku

As set up here, it can now run on heroku.