Misc cleanup in the API.
Barebones API docs.