Organizing CodeGenerator

Getting ready to generate writer and reader.