add write_evidence_file function, write text file instead of pickled file