update the code to use actual EUTelGeo interface, bug fix in the sensMap iteration:

first one:
       map< int, int >::const_iterator iter = sensorMap.begin();
-      while ( iter != sensorMap.end() ) { ////////////////////////////NEED TO FIX FOR SOME REASON LOOPS 1 EXTRA TIME
-        if( iter->first > -999 ){

+      while ( iter->first < sensorMap.size()-1 ) { // do not iterate through the very last plane
+        if( iter->first < 0 ) continue;
+

second one:
             float dpoint[3];
-            int newSensorID = state->findIntersectionWithCertainID((iter->second+1), dpoint );
-                                               int sensorIntersection = geo::gGeometry( ).getSensorID(dpoint);
-                                               if(newSensorID < 0 or sensorIntersection < 0){ //If there was no intersection of infinite plane or if the intersection is not in the sensor.
+            int next = iter->first + 1;
+            map< int, int >::const_iterator nextSensor = sensorMap.find( next );
+            int newSensorID = state->findIntersectionWithCertainID( nextSensor->second, dpoint );
+            int sensorIntersection = geo::gGeometry( ).getSensorID(dpoint);
+            streamlog_out ( DEBUG5 ) << " propagateFromRefPoint: pos:" <<  iter->first << " from ID= " << iter->second << " to ID=" <<  nextSensor->second << " and got: " << newSensorID << " sensorIntersection= " << sensorIntersection << std::endl;
+                                               if( newSensorID < 0 or sensorIntersection < 0 ){ //If the