Added folder support, but it's pretty useless since TunerPro only supports labels up to 100'th category and only supports 255 categories in total.
So I just put all the axes into Category 255 and if the map pack contains more than 254 categories, I just don't put them in the XDF.
Perhaps should ask on the TunerPro forums if Mark wants to support more than 255 categories.
Also, I attached a binary to this post, if anyone wants to try out the generator.
All you need to do is download it, then run:
java -jar xdf-generator-0.0.1-SNAPSHOT.one-jar.jar <path-to-kp>
and it will dump the xdf to stdout.
If you want it into a file, run it like this:
java -jar xdf-generator-0.0.1-SNAPSHOT.one-jar.jar mymappack.kp > mydefinition.xdf