Fixed bugs with negative locations. Reduced amount of code.
Added autoZoom