 void receiveData(int numBytes) {
   if (!systemArmed) {
     systemArmed = true;
+    triggerReady = true;
     digitalWrite(armedPin, HIGH);
+    
     /*
     * temporary
     */
-    lcd.setCursor(0,0);
-    lcd.print("System armed");
+    printStatus();
   }
 }
 
 void sendData() {
+  systemArmed = false;
   
+  /*
+  * temporary
+  */
+  printStatus();
 }
 
 // nonblocking countdown timer
 void countdown() {
+  /*
+  * temporary
+  */
+  lcd.clear();
+  
   long curr = millis();
   long delta = millis() - curr;
-  while (interval - delta >= 0) {
+  while ((interval - delta) >= 0) {
     /*
     * temporary
     */
-    lcd.setCursor(0,0);
-    lcd.print((interval - delta) / 1000);
+    lcd.setCursor(0, 0);
+    lcd.print((((interval - delta)) / 1000) + 1);
+    
+    delta = millis() - curr;
   }
+  sendData();
 }
 
+/*
+* temporay - print system state to lcd display
+*/
+void printStatus() {
+  lcd.setCursor(0,0);
+  lcd.print("System armed:  ");
+  lcd.print(systemArmed);
+  lcd.setCursor(0,1);
+  lcd.print("Trigger ready: ");
+  lcd.print(triggerReady);
+}
+

  }
  
  triggerState = digitalRead(triggerPin);
  if (triggerState == HIGH && systemArmed) {
    systemArmed = false;
    digitalWrite(armedPin, LOW);
    countdown();
  }
}

  * temporary - setup and test lcd
  */
  lcd.begin(16, 2);
  printStatus();
  
  /*
  * temporary
