Added comments and the changeGraph method to Dijkstra