added some grammar diagrams + fixed modified grammar in comments