Implemented grouping by parent task

- refs #20
Merge pull request #21, close #20