fix typos and minor issues