cleaning corpora writing file