fixed a few typos and added more snippets