Cleaned up output_fns.php and made new layout to treenode_class.php