processes twt file to build arff