Reinterpret n as prefix length, not final list length.
Start markers, too.
Add function for making a table from ngrams.
Tidied up a little, implemented the generator.