fixed some typos and snippet errors