added support for summarize function
Merge pull request #47 from davewongillies/summarize

added support for summarize function