fix bug on empty geojson files. Add new parameter for output folder