add function to proccess and correct X12 file