more tests, docs
Merge branch 'master' into gh-pages