added comments to model and template