Added debug messages. Working to improve performance of edge weight calculation.