error outputs

if the ID is not present or there is any other error, the info about
these cases will be printed at the begining of the output file