Add command to manipulate the new diagnostic stack/state introduced in the previous commit. Start adding documentation for the system as a whole.