Fix when generating configurations with external configuration file with rule generator disabled, generated rules will still be added. Add support for configuration files in YAML format. Optimize codes.