 
   while(Serial.available()) {
       c = Serial.read();
-      out.concat(character);
-  }
-
-  if(content != "") {
-    if(!parseGCode()) {
+      out.concat(c);
+  }
+
+  if(out != "") {
+    if(!parseGCode(out)) {
       Serial.println("Invalid GCode entered!");
     }
   }


  // Print welcome message
  Serial.println("miscr v0.1 [enter \"?\" for commands and \"$\" for status]\n\n");
}

void loop() {

  }
};


// Initialise Steppers
//         stepPin | dirPin | enablePin | minPin | maxPin 
