 low pwm means high voltage
 */
 
-//All code is using variables, which can change
-//Figure out how data for magnetometers have to be handled (photodiodes and temp are just default
+int NUM_BOARDS = 6;
 
-int NUM_BOARDS = 6;
+// output pins for controlling the mux
 int control0 = 2;
 int control1 = 3;
 int control2 = 4;
 int control3 = 5;
 
+// input pins for reading the mux
 int in0 = 0;
 int in1 = 1;
+
+// output pins for controlling the magnetorquers
+int torx = 6;
+int tory = 7;
+int torz = 8;
+int torred = 9;
 
 SBoard boards[6];
 Data d0;

  Serial.print("\n");
}


}

void readall(){
  // SOLDERING NOTE: MAKE SURE TO LINE UP OUTPUTS!!
  for (int i=0; i<(NUM_BOARDS/2); i++){
    master[i] = boards[i].readData(in0);
    master[i+1] = boards[i+1].readData(in1);
