Add tests for the examples in the README.
Complete the API section.
Add browser tests via browserify and testling.