Fixed broken directory generation and commented.

Added a feature to avoid over-writing existing maps