Update docs and add tests
Merge remote-tracking branch 'origin/master'