added model generator
added attributes to template model