Added documentation for getPathInHistory.
Updated/improved documentation.