Fixed a bunch of syntax errors.