Initial work on code generator. Removed unneccesary php ?> tag.