write variables from corpora out to text files