Updated p-p-s to use refs.

I also fixed accidental recursion down the file tree. HOWEVER I now know
how to do recursion down the file tree easily.
Added in hardlink-reading.