   pinMode(5, OUTPUT);
   pinMode(4, OUTPUT);
   
-  pinMode(52, INPUT);  //Schalter
+  
+  
+  pinMode(52, INPUT);  //switch
   pinMode(led, OUTPUT);  //laser
 }
 
 void loop() {
   
-  int x = map(analogRead(A0),0,1023,1,100);
-  int y = map(analogRead(A1),0,1023,1,100);
-  
-  while (Serial.available() > 0) {
-    String RawRead = Serial.readStringUntil('\n');
-    String BackWay = RawRead.substring(300);
+  int x = map(analogRead(A0),0,1023,1,100); //get analog values from potentionometer joystick
+  int y = map(analogRead(A1),0,1023,1,100); //get analog values from potentionometer joystick
+  
+  while (Serial.available() > 0) { // get 01010100110 sting from computer running processing
+    String RawRead = Serial.readStringUntil('\n'); //write raw string until end of line
+    String BackWay = RawRead.substring(300);  //get the first 300 characters of input string
     
     //Serial.print("I Read: ");
     //Serial.println(BackWay);
     
-    String testDigit = RawRead.substring(0,1);
-    contentString = RawRead.substring(0,300);
+    String testDigit = RawRead.substring(0,1);  //i have absolutely no idea what this was for :D
+    contentString = RawRead.substring(0,300); 
     
     testDigInt = testDigit.toInt();
     //Serial.print("testDig: ");

      doStepX(0);
      //Serial.println("StepX 0");
    }
    if(x > 40 && x < 60) {
      digitalWrite(9, LOW);
      digitalWrite(10, LOW);
    }
    else {
      digitalWrite(9, HIGH);
      digitalWrite(10, HIGH);
    }
    
    
    if(y > 60) {
      doStepY(1);
      //Serial.println("StepY 1");
    }


int nextStepX = 1;
int backStepX = 1;
