Added Task.delete and fixed docstrings