Add documentation
Change implementation of unGroupHashes