Added a half-way decent example in the README; updated tests to reflect this API.
Added base functionality, minus statics and locals.