Started implementing grouped reporting.

working on #16