Removing single(an)ton variables in map.pl
Completed main loop