Fix Serial.write() calls and remove extra files.