debug info and fix typos