added first bit of viz code
initial gm implementation; need to evaluate faster implementation