Minor updates on createGroup. Rework of deleteGroup.