Fixed building of graph with unbidirectional distances
Fixed broken distance weighting and moved it to session
cleanup of the old distance_add semantics