Added more debug messages, and a showContours button