Add new contour-identifying code
Minor documentation
Merge good-contour logic