Task tutorial revisions

I was pretty confused by the task tutorial, since one of the code snippets seemed to contradict the surrounding text and also made use of a syntax that is not sufficiently documented.

I am attempting to improve matters.  Maybe future effort would be better spent adding better docs for environment capture clauses.  (Or working on changing their syntax?)

Anyway, this seems like these changes should be an improvement.