fix typos and style issues