add comments: describe motivations and caveats of lua cpp function