Fix multiple typos and syntax errors.