Added some functions to write_txt