Document and extract all commands to variables