Added read_mapfile method to read map from a file