Fix syntax and spelling errors