made the debugging messaging configurable with a toggle, added a
use configuration section, verified measurement results are now correct