Fix syntax errors, remove random whitespace