Add the C API to sulum.
Refactor options.