added docstrings to map.py