debug and test
merge dijkstra code, update examples and docs