Refactored comparisons in polygon tests for contained points and edges. Added tests for subtraction. Cleanup.