Updated geojson file and write function