Add group support

This pull requests adds group support as requested in #30. I had to refactor a the custom type `supervisor`.