 
   switch (first) {
     //Motor code
-    case 'M': {
+    case 'M': { /*Motor codes*/
         char enable = codeArray[1] == '0' ? LOW : HIGH;
         char reverse = codeArray[2] == '0' ? LOW : HIGH;
         char brake = codeArray[3] == '0' ? LOW : HIGH;

        logs = "motor code set to level to " + input.substring(1);
        break;
      }
    //LED code
    case 'L': {
        char ledValue = codeArray[1];
        int ledDutyCycle = int(charToInt(ledValue) * 25.5);
        analogWrite(ledPin, ledDutyCycle); //sets up PWM on the speedPin



void save_and_send(DaqTelemetry *daqTelemetry)
  /*
   * compiles all the daqTelemetry, logs and runclock and forwards it along
   * to the controlling computer
   * 
   */
{
  String outputDistance = distance_to_string(daqTelemetry->distance);
  
