Edited the attachLabels function and saved ARFF training data with labels