   const int CS = 11;
   const int CLK = 10; */
 
-/*const int leftButton = 7;
+const int leftButton = 7;
 const int rightButton = 6;
-const int rightLed = 5;
-const int leftLed = 4; */
+const int rightLED = 5;
+const int leftLED = 4;
 
 LedControl lc = LedControl (12,11,10,0);
 
 void setup() {
-  lc.shutdown(0, false);
-  lc.setIntensity(0, 10);
-  lc.clearDisplay(0);
+    //Initialize pins by declaring their use according to the Arduino standard
+    pinMode(leftButton, INPUT);
+    pinMode(rightButton, INPUT);
+    pinMode(leftLED, OUTPUT);
+    pinMode(rightLED, OUTPUT);
+
+    //Initialize the LED matrix according to the LedControl examples
+    lc.shutdown(0, false);
+    lc.setIntensity(0, 10);
+    lc.clearDisplay(0);
 }
 
+
+/*  This function declares a variable representing a right arrow and applies it to the matrix.
+    It then clears the matrix.
+    */
 void rightArrow() {
   //byte right[8]  = {0x38,0x1c,0xe,0xff,0xff,0xe,0x1c,0x38};
   byte right [8] = {0x18,0x0c,0x06,0xff,0xff,0x06,0x0c,0x18};

  delay(600);
}

void loop() {
  leftArrow();
  //rightArrow();
}

  delay(600);
}


/*  This function declares a variable representing a left arrow and applies it to the matrix.
    It then clears it.
    */
void leftArrow() {
  //byte left[8]  = {0x1c,0x38,0x70,0xff,0xff,0x70,0x38,0x1c};
  byte left[8] = {0x18,0x30,0x60,0xff,0xff,0x60,0x30,0x18};
