Fixed a few issues with the C bindings, they're finished