added tree visualization
script for visualization