More tests, examples and docs