Add documentation

The functions mirroring official commands from the RFC now include the official
documentation.