added prediction library and ngram cutoff setup