Added SD card logging and removed Serial.print debug messages.