Export data to text, fix one NaN missing and fix for automation