Fixed some typos and syntax error