Added NUllGlobals optional argument to Writetidalwindows routine
Added errorhandling to DesireWaypointchange routine