Modified signature of readCorpus()