Refactoring
Use WEKA library to write ARFF file