add writing of data, add test_file, improve conversion performance