Cleaning IDP data files