 
 //
 const int pinc = 4;
-const int pins[pinc] = {5,6,7,8}; //physical to logical pin
+const int pins[pinc] = {5,6,7,8}; //physical to logical pin address
 const int eeprom[pinc] = {0,1,2,3}; //pin address in eeprom
+
+volatile int pineepromstate[pinc] = {0,0,0,0};
 volatile int pinhardstate[pinc] = {0,0,0,0};
 volatile int pinsoftstate[pinc] = {0,0,0,0};
 volatile unsigned long pintime[pinc] = {0,0,0,0};

      //
         pinhardstate[i] = 1;
         pinsoftstate[i] = 1;
         pintime[i] = millis();
         }
      else 

      digitalWrite(pins[i], HIGH);
      }

   //eeprom read
   for (int i = 0; i < pinc; i++)
      {
   //
      pineepromstate[i] = EEPROM.read(eeprom[i]);
      }

   //
   Timer1.initialize(100000); // 10Hz // set a timer of length 100000 microseconds (or 0.1 sec - or 10Hz)
   Timer1.attachInterrupt( timerIsr );

   //Start up the serial port
