implemented cluster groups (issues 10, 19, 22)