Document Pathfinder.

* Also make documentary changes to code.
* Please scrutinize this carefully.