 
 void loop()
 {
-  static int buttonState = 0; //Button-display-toggle-tracking variable; has 4 potential display states
+  static int buttonState = 0; //Button-display-toggle-tracking variable; has 5 potential display states
   static bool buttonFlag = false; //Variable to prevent infinite cycline when the button is pushed
 
-if(millis() > lastRxTime + packetTimeDelay)//Update the communications LED
-  digitalWrite(packetLED, LOW);
+  if (millis() > lastRxTime + packetTimeDelay) //Update the communications LED
+    digitalWrite(packetLED, LOW);
   else
-  digitalWrite(packetLED, HIGH); 
+    digitalWrite(packetLED, HIGH);
 
   if (digitalRead(buttonPin) == HIGH) {
     if (!buttonFlag) {
       buttonFlag = true; //Note that we've pushed the button, so that the counter only increments once
-      if (buttonState == 4) {
+      buttonState++;
+      if (buttonState == 5) {
         buttonState = 0;
-      }
-      else {
-        buttonState++;
       }
       lcd.setCursor(15, 1);
       lcd.print(buttonState);  //Update the button state on the LCD

                break;
            }
            break;
          case 3: //Case 3 displays GPS altitude data if the GPS is enabled
            if (buf[5] == true) {
              if (gpsFix == 0 || gpsQuality == 0) {
                lcd.print("No GPS fix.");

   Display-shifting code overhauled- previous configuration printed certain data subsets
   regardless of whether that data was part of the incoming packet. Current version receives data,
   then once the packet has been processed runs a switch-case based on the button input to
   determine what to print to the LCD. (Added several new display modes as well- flag-confirmation, sd-check)
   Also slightly modified the button code to prevent multi-incrementing for each time the button is pushed
   Added code to control several LEDs- whether the fin override is in place, whether the servo has power,
   whether communications are working, and three which indicate the fin position
