fix debug statements and change string formatting

update all PtDebugPrint() statement to correctly identify source
replace "%" string formatting with .format