added getNodeTree API
Merge pull request #6 from assureit/api_getNodeTree

added getNodeTree API