added createCorpus util methods
first half of the test case
fixed signature : of course a matrix builder works on a corpus and not a
single document