 
 dataPackageStruc dataPackage;
 
-// Data logging and time stamping from http://arduino.cc/en/Tutorial/YunDatalogger
+// data logging and time stamping from http://arduino.cc/en/Tutorial/YunDatalogger
 #include <FileIO.h>
-String fileName, timeStamp, dataStr, rawdataStr;
+String fileName, dataStr, rawdataStr;
 char __fileName_rawdata[43] = "/mnt/sda1/datalogs/YYYY-MM-DD_RF12_raw.dat";  // value as pattern only, to get size right
 char __fileName_data[39] = "/mnt/sda1/datalogs/YYYY-MM-DD_RF12.dat";  // value as pattern only, to get size right
 

        //
        // Log raw data to separate file, to prevent data gets lost or misinterpreted
        //
        rawdataStr = getTimeStamp() + ","
                     + String(dataPackage.rf12_group) + ","
                     + String(dataPackage.rf12_nodeid);
        for (byte i = 0; i < rf12_len; ++i)

            rawdataStr += rf12_data[i];
        }
        // open file, one one can be open at a time
        fileName = "/mnt/sda1/datalogs/"
                   + dataPackage.timeStamp.substring(0, 10)
                   + "_RF12_raw.dat";
        // convert fileName string to char array
        fileName.toCharArray(__fileName_rawdata, sizeof(__fileName_rawdata));
        File rawdataFile = FileSystem.open(__fileName_rawdata, FILE_APPEND);
