fixed syntax errors and clarify some grammar