fix typo: q -> a, mark code identifiers with <tt>