Added WriteCurrentLocationToFile -- will probably change name; still in progress