Re-formats the code structure of nav service and umbtree to be easier to read, adds better error checking to treeservice