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

        buff = "";
      }
      
      // grab last value
      if(i == (BUFFER.length()-1)) {
        time = buff.toInt();
      }
    }
    
    BUFFER = "";
    Serial.println(type+":"+time+":"+looper);
    btSerial.write(time);
    
    if(type == "blink") {
      blink(time, looper);
    }

#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()
{
