-/* Feeder code V3 */
+/* Feeder code V3 */  //code with stars (**) next to it is particularly important or contains variables for tuning values
+//importing libraries
 #include <avr/sleep.h>
 #include <avr/power.h>
 #include <avr/wdt.h>

bool pelletCounted[] = { false, false };
bool countMe[] = { false, false };

#define FILENAME "PelletData.csv"
const int CS_pin = 10;
SdFat SD;
File dataFile;

const int MOTOR_STEPS_PER_REVOLUTION = 513;
const int STEPS_TO_INCREMENT = 48; //24
Adafruit_MotorShield gMotorShield = Adafruit_MotorShield();
Adafruit_StepperMotor *motor1 = gMotorShield.getStepper(MOTOR_STEPS_PER_REVOLUTION,1);
Adafruit_StepperMotor *motor2 = gMotorShield.getStepper(MOTOR_STEPS_PER_REVOLUTION,2);

void setup() {
  //power saving stuff
  for (byte i=2; i <= 20; i++)

  if (dataFile) {
    Serial.println(F("File successfully written..."));
    Serial.println(time);
    
    //printing to SD card (each comma tells the excel doc to go to the next cell to the right)**
    dataFile.print(time);
    dataFile.print(",");
    dataFile.print(pelletCount[0]);
