Merge pull request #3 from fawick/master

Added a couple of functions to the C API