pfind: documentation and code refactoring