changes in generator
change
added comments for methods in model.rb