Update task.php

Added comments in the code.