Refactor added documentation for the group method