Code Generator

Completed the code generator