Moved debugging routine to new file; added includes section on ddoc2.  Proceeding wif debugging nao.