Added comments for ShortestPaths class