Added unscaleCoords, fixed minor bugs.