fix typos and doc inconsistencies