correction of the invalid codes, addition of a excel table to compute valid codes