added corrections for jobs with "basis2"
and for cases when comments are inserted into one of the rem lines