A few more C API functions.
Merge pull request #90 from alberts/morecapi

A few more C API functions.