Minor fixes in Group and Document classes

Stuff added to index to fetch groups and documents