Improved docblocks. Fixed wierdness in task done/failed implementation.