Making getContactGroups() work the same way getContacts()
Fixing the example