Un-throttle graph refresh rate, clean up code