added C API to the README