Fix typos and syntax errors