Refractored visualization code, nice tree layouting, label placement.