added code generator code to project