GroupLogic: added docstrings