Added a function to save the map on node exit
Save map to use it whenever
Merge conflict fixed
Merge branch 'valeRB-master'