cleaning up grammar file to compile properly