adding additional functions, fixing addressHistory() (which is still slow)