Dead code removal, some const cleanup
Some code cleanup, removed "Subtree percentage"
Eliminated IsRootItem & that bool, fixed

use of failed function calls, other minor fixes
oops broke something
Revert "oops broke something"

This reverts commit 82a61e2305350b29d43755998cc3b7230b1dd412.
smproj