Add config file support and update cmdline