   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: ");

    //Serial.print("String: ");
    //Serial.println(contentString);
    
    digitalWrite(3, HIGH);
    digitalWrite(2, HIGH);
    digitalWrite(9, HIGH);
    digitalWrite(10, HIGH);
    
    for (int i=0; i <= 300; i++){
      //Serial.print(contentString[i]);
      
      
      if(contentString[i] == '1') {
        digitalWrite(led, HIGH);
        //Serial.println("1");
        doStepY(0);
        delay(nikoDelay);
      }
      else {
        digitalWrite(led, LOW);
        //Serial.println("0");
        doStepY(0);
        delay(2);  //2ms für ruhigen lauf
      }
    }
    doStepX(1);
    
    
    for (int i=0; i <= 300; i++){
      //Serial.print(contentString[i]);
      
      
      if(BackWay[i] == '1') {
        digitalWrite(led, HIGH);
        //Serial.println("1");

  
}

void doStepY(int dirForY) {   //stepper motor function for Y axis
  if(dirForY == 1) {
    switch(nextStepY) {
      case 1:
