Implement a lot of the remaining "core" functions
Add examples/simpleapi.rs