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

  Serial.println(daqString);
}

int update_watchdog_timer(){
  watchdogTimer = watchdogTimer + ( millis() - lastTime );
  lastTime = millis();
  return watchdogTimer;
}

void loop() {
  Serial.println(watchdogTimer);
  if (Serial.available() > 0) {
    process_code( retrieve_code() );
  }
  daqTelemetry = daq();
  save_and_send(daqTelemetry);
  
 update_watchdog_timer();
  if(watchdogEnabled == true){
    if(watchdogTimer > timeoutTime){
      process_code( recallCode );
    }
  }
  Serial.print("freeMemory()=");
  Serial.println(freeMemory());
  logs = "Null";
  delete daqTelemetry;
}



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);
  
