fixing addressHistory() logic, improving docstrings