Fix config option

support "output a config file"
Fix a uninitialize bug