add `p` function and README.md