Fix name of debug logger

A residual from the old name of TrieDBarcode, mis-abbreviated to TBD.
Improve error messages and comments in main.c