Drop-out calculating fixed.
Variables renamed to match conventions.
Sorting nodes when initializing tree view.