Updated function level comments for findPath()