small edit and add in contourHelper and addition of a test file

change double -> TPoint::Coordinate (otherwise, casts occur here)