nitg: improve doc, code organization and comments of the C++ FFI

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>