update examples, fix typos