refs #51, implemented the storage of caret, grammar and encoding info