Now creating output and whiffs file for both testing and training corpus.