Small debug output update.
debugMode implemented
Removed some debug code.