Bug fixing and added getGroups() method
Better debug statements written