added leaf stats to print_tree()