Added documentation for groups functionality

This is the documentation for the groups functionality.