java code generation

class serialization not yet completed