added to_h function to task context
Merge pull request #17 from planthaber/taskcontext_to_h

added to_h function to task context