Added -vis option to visualize a tree