fix some typos and samples