added comments to task_controller