cleanup and documentation of generator template model