updated, corrected, and expanded text cleaning