added code for schema generation
refs #44