Lots of hackery to get different things out like spare arff files and to generate graphviz tree diagrams.