New stuff

New BWCodeGeneration code and added functionality for config file gen.