fixed the doubletostring

fixed the doubletostring
fixed the incorrect reporting of time in writeToSD()