Added generation of config file with threshold percentage to generate exit 1 #40
Refactored config files generation
Merge PR with threshold and CLI refactoring