bugfix in getTextFiles
using filenames to assign attribs with corpus.directory and NextMethod