Much restructuring, loads maps from JSON file