update grammar, document version