Mechanical fixes

Just a few syntax errors and typos.