update examples, fix a couple typos