added very basic d3 visualization. set maxDepth to 1
accept maxDepth from user