added config file command line option and fixed key error in config