improve formatting and fix typos.