Fix some typos and code snips