Added file to refactor code generation
New code generation implementation complete. Needs testing
Finished refactoring