     Serial.println(gpsSerial.read());
     Serial.println("Waiting for buffer to be filled");*/
 
-  gpsbuffer = dynamic_array_serial(gpsSerial, MAX_BUFFER_SIZE , '$', '*');
+  gpsbuffer = dynamic_array_serial(gpsSerial, MAX_BUFFER_SIZE , '$', '*');//TTry to read data from gpsSerial
   //Serial.println("Succeed in loading buffer with data");
   //Serial.println(array_length);
-  for (int i; i < array_length - 1; i++) {
+  for (int i; i < array_length - 1; i++) {//Print all data in gpsbuffer
     Serial.print(gpsbuffer[i]);
   }
   Serial.println();

            //Serial.println("End listening");
            //Serial.println(result[0]);
            if(string_pattern_checker(result,GPS_START_PATTERN)){
            return result;
          }
          else return NULL;
          }
          else {
            result[i] = max_array[i];

      }
    }
  }
  else return NULL;//Src has no data waiting to read? Return NULL!
}

boolean string_pattern_checker(char* string, char* pattern){
