Documentation for aggregate and some minor fixes to the doc
Added aggregation
Fix bad example in README
Added tests for aggretation
Updated aggregate documentation