Should read environmental variables on heroku now

Also updated the config sample file to add HOST value.
Removed some old code and added some comments