Fixed some bugs, a bit more accurate zooming.