Cleanup (thx zzz)
Method to check if a point is on its own curve
More cleanups from zzz