work in progress for corpusFromFolders