Ensured error file is deleted
Removed debug code
Fixed NT not showing in output 1 and 2