added documentation to the task class