added a checkContourWidget() function to mainFrame, updated to do comments