added code for arff parsing