I like to keep relevant papers in the same folder...
Shift tree output to generic function, add weighting and semigrouping