Added right click to remove by clicking and r to remove last added point, abstracted invalidation into methods