Renamed route to leg, renamed partialroute to route. Modified route distance features and tests to test Q1 to 5 correctly.