Added a map exporter, it seems to work well enough but some things are still to be improved.