added a section on projecting a point onto an arbitrary curve