added comments to the controllers and models