update and clean text files