cleanup & libsvm file gen