working OCaml bindings

OCaml bindings are compiling and working. All tests are fixed.