Syntax documentation rewrite of O and P commands

Rewrote the syntax documentation of the commands starting with the
letters O and P.