use LZW compression to save a lot of disk usage
also fix contour loader to work globally
add some error checking to the bounds