Added toggleGraphVisibility method
Fixed scaling and redraw bugs
Added depth constants for renderTop