Fixed many syntax errors