Added some comments
More config options via env variables
Allow template to be set via enviroment variables