[ocaml] add comments
[ocaml] implement grounding action functions