corrected minor bug that prevented the addition of the id in the output
file