Fixed typos and added snippets