fix typos, update documentation