Fix segfault if no group is extracted.
Improve documentation.