Add documentation and example for groups