Added config file and support for specifying template and destination directory