cleaning up grammarviz code