- added tests
- modified sum to return NaN if no data is available
- fixed some bug with groupby and multiple groups