fixed some typos, added more code examples