   UpdateButtonLEDs(); //update button LEDs.
   delay(1);  //Small loop delay to support debounce.  This defines minimum debounce sample time.
  
-}
-
+ //need management of L/R button LEDs.
+ //Need test mode in order to test out hardware
+ //Then need lockout
+//testmode needs fixing/needs password
+//left/right button leds
+//need to add password at bootup
+//add pin change interrupt to left button so if it is realeased, turn off solenoid immediately.
+//need to confirm if delay can get messed up at loop of millis.
+//consider turning off trigger led when arm is disabled.
+}

  return 0;
}

//load a saved sequence
//takes in which sequence to load
//returns the number of steps

  delay(50);
  Serial1.write("oller?\r\n");
  delay(50);
  Serial1.write("ENT->Yes  Other-> No\r\n");
  Serial1.write(0x07);  //send bell character.
  Serial1.write(0x07);  //send bell character.
  Serial1.write(0x07);  //send bell character.
  while (((Serial1.read()) != -1));  //Clear off the input buffer
  for (int i = 0; ((i < 10000) && (Serial1.available() == 0)); i++)
    delay(1);   //wait here until get a key, or timeout at 10sec
  if (Serial1.read() == ENTERkey)
