added comments to controller