Refractored visualzation, introduced own graph drawing.

This is an intermediate commit.