added import functionality to the map editor