Cohorts: create_cohorts function added, tested and documented.