Adding GRAMs to Ngram and made some minor modifications.