Rename corpus to model, add const keywords

“Corpus” is a word with a different, well-established meaning in data
compression.