updated generator
added attr_accessible