training data and data cleaning script