Cleared discrepancy report errors, removed debugging code