Updated OptionPanes
Added comments + cleanUp
On rightclick - directions now update the textfields in the GUI

nearest is now known as nearestEdge!