 char inputBuffer[SERIAL_BUFFER_LENGTH];
 float gradPerc, gradPercPerTick, gradDelayPerTick;
 int gradcol1[3], gradcol2[3];
-boolean gradientLoop, recentActivity = false;
+boolean gradientLoop = false, recentActivity = false;
 
 int red,green,blue;
 int* rgb[4] = {&red, &green, &blue, 0};
 
 // -------------- THREADS ---------------
 #include <TimedAction.h>
-TimedAction   serialThread = TimedAction(1000, &processSerial);
+TimedAction   serialThread = TimedAction(2000, 70, &processSerial);
 TimedAction gradientThread = TimedAction(0,  &gradientStep); // initially disabled in setup()
-TimedAction  timeoutThread = TimedAction(TIMEOUT*1000,  &timeoutAction);
+TimedAction  timeoutThread = TimedAction(TIMEOUT*1000, TIMEOUT*1000,  &timeoutAction);
 
 void setup() {
   if (SINGLE_LED) {

 *  
 *  set a constant color value: "V#FFFFFF"
 *  make gradient pulses between two colors: "G#000000:#FFFFFF:pulseTime"
 *    \--loop between two colors: "L##000000:#FFFFFF:pulseTime"
 *  
 *  Change SINGLE_LED and the color pins to match your hardware.
 *  You can toggle a handy debug mode with "d".
 */

#include <stdarg.h>


  }    
}

void printColors() {  
  Serial.print('#');
  if (red<=16) {Serial.print('0');}
