more test cleanup, docs, work on withPivot method
Merge branch 'master' into gh-pages