wrote docs for functions starting with "P"
Merge pull request #90 from AndrewAnnex/P_docs

wrote docs for functions starting with "P"