Refactor config file and relating objects it creates. Also make the Map class a bit easier to comprehend.