Added improved undo/redo capability and file autosaving. Extended optimization to routes in lakes and ponds. Version 1.40