Add main script and support for specifying path to config file