added generate_config, cleaned config_params