Implement grammar validation; Add more unittests for grammar parser; Change font of grammar input box.