Add minimal documentation for group function