fix typos and inconsistent style