Fixed bug with distance in getExistingSession
Added function for formatting undo button text
Implemented undo
Merge pull request #114 from johnttan/undo#74

Undo#74
Implemented filtering by distance
Fixed conflict