         buff = "";
       }
       
-      // grab last value
+      // get last value
       if(i == (BUFFER.length()-1)) {
         time = buff.toInt();
       }
     }
+    BUFFER = "";
     
-    BUFFER = "";
     Serial.println(type+":"+time+":"+looper);
     btSerial.write(time);
     
+    // validation
+    // type["blink", "pulse"]
+    // time[500, 250, 100, 50]
+    // loop[1, 2, 3]
+    // rept[30, 15, 5, 3]
     if(type == "blink") {
       blink(time, looper);
     }

    String buff = "";
    int parsed = 0;
    for(int i=0; i<BUFFER.length(); i++) {
      buff += BUFFER[i];
      
      // delimeter
      if(BUFFER[i] == ':') {
        buff = "";
      }
      
      // grab value
      if(BUFFER[i+1] == ':') {
        if(parsed == 0) {
          type = buff;

#include <SoftwareSerial.h>

SoftwareSerial btSerial(9, 10); // TX, RX

// Global
String BUFFER = "";
char DELIMETER = ':';
int LED = 13;

// Defaults
String TYPE = "blink";
int TIME = 100;
int LOOP = 3;
int REPT = 15;

void setup()
{
