Fix OCaml program and cleaning up.