Syntax documentation rewrite for Q-commands

Rewrote the syntax documentation for all commands starting with the
letter Q.