Added enumeration of trie elements and cleaned C/C++ linkage.
Cleaned C/C++ linkage and fixed some wrong behaviours.
Fixed partial parse and offset management. Now only output the greediest parse tree.