Renamed function from class to group
Removed useless print from error
capitalized memberUid
Return users
Added comments for clarification