add getRoute and route
fix tests
documentation