fix typos, docblocks, use statements