   dataFile.println(",");
 
 
-	dataFile.close();
+	dataFile.close(); //Close dataFile
 
   /*UV */
-	pinMode(UVOUT, INPUT);
-	pinMode(REF_3V3, INPUT);
+	pinMode(UVOUT, INPUT); //Set the pin used to read the UV Sensor to Input
+	pinMode(REF_3V3, INPUT); //Set reference 3.3V pin to Input
 
   /*Luminosity*/
-  tsl.begin();
-  configureSensor();
+  tsl.begin(); //Start Luminosity Sensor
+  configureLumin(); //Run Config Fucntion
   /*Magneto*/
-  Wire.beginTransmission(address); //open communication with HMC5883
-  Wire.write(0x02); //select mode register
-  Wire.write(0x00); //continuous measurement mode
+  Wire.beginTransmission(magnetoAddress); //Open Communication with HMC5883
+  Wire.write(0x02); //Select Mode Register
+  Wire.write(0x00); //Set Continuous Measurement Mode
   Wire.endTransmission();
 }
 
 void loop(){
-	/*Time*/
-	DateTime now = rtc.now();
-
-	dataFile = SD.open("datatest.csv", FILE_WRITE);
+	Serial.println();
+
+  /*Time*/
+	DateTime now = rtc.now(); //Define now
+
+	dataFile = SD.open("datatest.csv", FILE_WRITE); //Open dataFile
+  //Print Time
   dataFile.print(now.month(), DEC);
   dataFile.print("/");
   dataFile.print(now.day(), DEC);

  return(runningValue);
}


float mapfloat(float x, float in_min, float in_max, float out_min, float out_max){
  return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
}

  dataFile.print(now.second(), DEC);
  dataFile.print(",");

  /*Barometer*/

  char status;
  double T,P,p0,a;
  status = pressure.startTemperature();

  if (status != 0)
  {
    delay(status);
    status = pressure.getTemperature(T);
    if (status != 0) //If status does not = zero there was an error starting temp measurement
    {
      //Print to Serial
      Serial.print("temp: ");
      Serial.print((9.0/5.0)*T+32.0,2);
      Serial.println(" deg F");
      //Write to SD
      dataFile.print((9.0/5.0)*T+32.0,2);
      dataFile.print(",");

