add support for multiple groupings
Merge pull request #2 from asceth/multiple_groupings

add support for multiple groupings