Added better comments for group detection logic
Added better comments for group detection logic

kobotoolbox/kpi,onaio/kpi,kobotoolbox/kpi,onaio/kpi,kobotoolbox/kpi,kobotoolbox/kpi,onaio/kpi,onaio/kpi,kobotoolbox/kpi