Changes based on feedback

- rename physical to permanent
- foldRight and API doc enhancement in StashSupport.prepend