added remainder of blb functions for ngram app