Added code to prevent contour crashing...
Merge pull request #3 from bwgref/master

Added code to prevent contour crashing...