Fix a problem with the poly-line simplification algotithm
Pushinh the mode variable up, and removing PATH mode.
Push the "Clear WPs" menu option up.