added helper methods to get array of group names, 
check if element is in group and get all element 
names of a given group.