 
 // SETUP //
 void setup() {
-  // Attach motor variables to digital pin
+  // Attach servo variables to digital pin 2-6
   m1.attach(2);
   m2.attach(3);
   m3.attach(4);
   m4.attach(5);
   m5.attach(6);
 
+  // Serial monitor for debugging
   Serial.begin(9600);
 }
 
 
 // LOOP //
 void loop() {
+  // read the analog value of A4 and store it in variable 'emg'
   int emg = analogRead(A4);
 
+  // if statement for defining which muscle activity corresponds
+  // with which hand movement
   if (emg < 50) {
     allFingers(700);
   } else if (emg > 50 && emg < 200) {

// LIBRARIES //
#include <Servo.h>

Servo m1;
Servo m2;
Servo m3;

}

void thumbsUp() {
  m1.writeMicroseconds(700);
  m2.writeMicroseconds(2300);
  m3.writeMicroseconds(2300);
  m4.writeMicroseconds(2300);
  m5.writeMicroseconds(2300);
  delay(100);
}

void middleFinger() {
  m1.writeMicroseconds(2300);
  m2.writeMicroseconds(2300);
  m3.writeMicroseconds(700);
  m4.writeMicroseconds(2300);
  m5.writeMicroseconds(2300);
  delay(100);
}
