Ngram documentation.
Documentation and speedups and bug fixes.