Fixed the limit on the node levels.
Root cause Tree is response to input.
streamlined some of the code.