Add explicit debug mode and other reductions of debug output in normal mode