some fixes (but some things still go wrong!)
fixed readcorpusfile -> read_corpus_file