Added grammar writer for GF format