Docstrings for tasks.py
Document returned errors, and tighten up some related error handling
Merge pull request #11 from commonsmachinery/tasks-documentation

Docstrings for tasks.py