Added some logic to compute totals and added the miles property to the waypoints