   }
 }
 
-// subroutine to update status line
+// Update status line
 void update_status() {
   clear_line(1);
   lcd.setCursor(0,1);

      EEPROM.put(eeAddressStart+buttons*sizeof(double),freq);
      strcpy(statusLine,"m");
      statusLine[1] = '0' + buttons; 
      statusLine[2] = 0; // so that next bit gets add on here
      strcat(statusLine," stored");
      update_status();
      } else {

  pinMode(DATAPIN, OUTPUT);
  pinMode(RESET, OUTPUT);
  
  
  // Set up Rotary Encoder
  pinMode(A_PIN, INPUT_PULLUP);
  pinMode(B_PIN, INPUT_PULLUP);
  attachInterrupt(0, evaluateRotary, CHANGE);
  attachInterrupt(1, evaluateRotary, CHANGE);
  pinMode(RotEncSwPin, INPUT_PULLUP);
  
  // Set up Output Monitoring
  pinMode(WARN_LED, OUTPUT);
  digitalWrite(WARN_LED, LOW);
  analogReference(INTERNAL);
  threshold = 1023L * THRESHOLD_VOLTAGE / 1100;
  
  // Set up memory buttons
  for (int buttons=0; buttons < NUMBER_MEM_BUTTONS; buttons++) {
