More structure

Added config support
Made it heroku friendly