Cleaned up debug code
Changed debug printer interface
Fixed some bugs in pending cut handling