added comments to controllers, models and javascript assets