implements reducedFeatureSet and starts measureCohortSize (sorry for gross commit)