Add groups option

I added the groups option and followed the rule you applied about documentation and unit test in PR #7.
Don't hesitate to comment!