Added grammartester to source files.
Migrated xformat to format calls in grammar tester.