Handle grouped output

Fixes #6
Release version 1.0.1