Feature/speed distance calc

Assorted changes to speed things up a bit and make the app more responsive while distance calculations are being made.