Fixed several syntax errors