Added CodeGenerator.java and wrote the base code for each element type that is currently supported