this adds support for status output for groups

I took @simonjj's change in PR #135 and pulled out just the one commit that is needed for this feature, as he had one extra commit, probably because he did the change and the PR from his `master` branch.

I figured a cleaner PR would be preferable and easier to review.