Finished up first version of CodeGenerator