remove deprecated aggregation method calls in favor of new methods
fixed formatting
Merge pull request #67 from maxkremer/master

remove deprecated aggregation method calls in favor of new methods