Improve task grouping - Allow arbitrarily nested grouping - Change API for printing task grouping results