         segmentPtr++; 
         indexPtr++;
       }
+      else if (inputString.charAt(indexPtr+1) == '\n')
+         break;
     }
 
 //    spaceBar = inputString.indexOf(' ');
 //    for (int i=spaceBar+1; i<(inputString.length()-1); i++)
 //      buffer2 += inputString.charAt(i);
 
+    if(decomposedMessage[0] == "GET")
+       Serial.println("Arduino Motor Driver");
     if(decomposedMessage[0] == "Set")
     {
       timeOfLastMessageReceived = millis();

        else
          u[i] = max(buffer, -mios);
      }

//      for (int i=0; i<6; i++)
//      {

void setup()
{
  Serial.begin(115200);
  inputString.reserve(200);
  /*md1i2.init();
  md3i4.init();
