added stop-task, and reworked example