anonymization + patient details implemented to export to txt