allow specification of topmacro sort key
add proper_subranges and proper_subgrams
return 0 for frequency of nonexistent entries
function to load from Ngrams-style data