Added Grammar output methods for debugging purposes.