Fixed bug in detecting if on heroku and added print statements.
Fixed indent bug