Fixed most syntax errors