fix typos; add pdf version of diagram