   pinMode(soundSensor, INPUT);
   pinMode(buttonPin, INPUT);
 
-  //Serial.println(F(FreeRam()));
   dataFile = SD.open("test.csv", FILE_WRITE);
 
   // If the file opened okay, write to it:
   if (dataFile) {
-    //Serial.print("Writing to test.txt...");
-    dataFile.println("row,lat,lon,speed,timestamp,sound,luminosity,lux,ir,vibration");
-    // close the file:
+    //Serial.print("Writing header test.csv...");
+    dataFile.println("row,lat,lon,speed,timestamp,sound,luminosity,lux,ir,vibration,altitude");
+    // Close the file:
     dataFile.close();
     //Serial.println("done.");
   } else {
     // if the file didn't open, print an error:
-    Serial.println(F("error opening test.txt"));
+    Serial.println(F("Error opening test.csv"));
   }
 }
 

        dataFile.print(seperator);
        dataFile.print(tsl.getLuminosity(TSL2591_VISIBLE));
        dataFile.print(seperator);
        dataFile.print(tsl.calculateLux(full,ir));
        dataFile.print(seperator);
        dataFile.print(ir);
        dataFile.print(seperator);
        dataFile.println(((double) accelgyro.getAccelerationZ()/16384), 4);

        // close the file:
        dataFile.close();



      // Serial.println("DATE & TIME:");

      // Print date
      int year;
      byte month, day, hour, minute, second, hundredths;
      gps.crack_datetime(&year, &month, &day, &hour, &minute, &second, &hundredths, &age);
