Less code for defining $mapname and cleaner printing of the mapname on different places.
Merge pull request #1 from BlackVoid/master

Code optimization