    
   xNormal = (xRange[0] + xRange[1])/2;
   yNormal = (yRange[0] + yRange[1])/2;
-   
-  Serial.print(xRange[0]); Serial.print(", "); Serial.println(xRange[1]);
-  Serial.print(yRange[0]); Serial.print(", "); Serial.println(yRange[1]);
+  
+  if (DEBUG) {
+    Serial.print("X Min: "); Serial.print(xRange[0]); Serial.print(", Max: "); Serial.println(xRange[1]);
+    Serial.print("Y Min: "); Serial.print(yRange[0]); Serial.print(", Max: "); Serial.println(yRange[1]);
+  }
 }
 
 

  
  switch(id) {
    case MOUSE_LEFT_PIN:
      Serial.println("Left button touched"); Serial.println("");
      Mouse.press(MOUSE_LEFT);
      break;
//    case MOUSE_MID_PIN:
//      Mouse.press(MOUSE_MIDDLE);
//      break;
    case MOUSE_RIGHT_PIN:

void releaseHandler(int id) {
  //Serial.print(id); Serial.println(" released");
    
  switch(id) {
    case MOUSE_LEFT_PIN:
      Mouse.release(MOUSE_LEFT);
      Serial.println("Left button released"); Serial.println("");
      break;
//    case MOUSE_MID_PIN:
//      Mouse.release(MOUSE_MIDDLE);
//      break;
    case MOUSE_RIGHT_PIN:
      Serial.println("Right button released"); Serial.println("");
      Mouse.release(MOUSE_RIGHT);
      break;
  }

    calibrationCounter++;
    calibrate(accel.acceleration.x, accel.acceleration.y);
  }
  delay(delayRate);
}


