update export test csv custom format
write external no longer needed for Kitkat
improved calculation