Fixed up the renderer to allow zooming. Fixed a few bugs in the original.