Adding an script for exporting the map to a text file