Debug discipline

In reply to verif_learner:

Hi All,

After some thought, this is what I am thinking of doing in order to reduce the code bloat due to debug messages. I am planning to delegate the debug message logging to a separate function.
The source of debug messages will call the function with some token/ID. This is the first pass. If there is still an opportunity to reduce the code clutter, I will further use macro (`define) to clean up the code better.

Ideas and thoughts are most welcome.