Classification output to a file
Examples better organized
Some optimizations and only writing direct subclasses