add -m mouse support
Fix bug that didn't delete contours from quads and added removal of contours with duplicate corners.