added doxygen comments to the C api, and finished stubbing it out