Fixed default config loading, and added command line flag loading into config.