Serial.read issues

By careful debugging, and handling the serial monitor's line-ending yourself