script finally outputs a geojson file with proper properties. Still testing the final output.