Various fix and improvements that can be cherry-picked

Hi,

I push here various fix and improvements that can be cherry-picked. The commit history is clean and simple to see progress: fixed some bugs, normalized and improved table, added three options to allow different usages.

Sincerely,

Daniel Berthereau
Infodoc & Knowledge management