add groupOn1 function

closes #159
This is missing the pipe to indicate a Haddock comment.