fix typos and add example