Expanded on CodeGenerator, simple code generation now possible.