added functions to build main geojson file