Fix some syntax errors and typos