basic error handling features added to contour surface generation -> polygon conversion so that distinct levels can be identified on complex surfaces.