Improved documentation of include/dai/jtree.h and did some cleanups