speed up the creation of new Groups (issue 239).
fix bug in previous commit
remove some unused variables
remove another unused variable
Merge pull request #243 from jswhit/master

speed up the creation of new Group instances (issue 239)