added corpus generation
corpus and words working
more changes to corpus, trying to track down stateful bug