added comments to models and controllers