   /* remove saved config and restart if the flash button is pushed */
   attachInterrupt(digitalPinToInterrupt(D3), deleteWifiConfig, CHANGE);
 
+/* Setup PWM */
   analogWriteFreq(PWM_FREQ);
   analogWriteRange(1023);
 
- // Try to load config
+ /* Try to load config */
  if (SPIFFS.begin()) {
-    Serial.println("mounted file system");
+    Serial.println(FPSTR(FSMOUNTED));
     if (SPIFFS.exists(CONFNAME)) {
       //file exists, reading and loading
-      Serial.println("reading config file");
+      Serial.println(FPSTR(CONFOPENING));
       File configFile = SPIFFS.open(CONFNAME, "r");
       if (configFile) {
-        Serial.println("opened config file");
+        Serial.println(FPSTR(CONFOPENED));
         size_t size = configFile.size();
         // Allocate a buffer to store contents of the file.
         std::unique_ptr<char[]> buf(new char[size]);

  /* Connect to the AP if not connected by the WiFiManager */
  WiFi.setAutoConnect(false);
  WiFi.setAutoReconnect(true);
  for (uint8_t count = 5; count > 0; count--) {
    if (!WiFi.isConnected()) {
      WiFi.begin(stassid.c_str(), stapass.c_str());
    } else {
      break;
    }
    delay(1000);

void deleteWifiConfig() {
  cli();
  if (SPIFFS.exists(CONFNAME)) {
    Serial.println(FPSTR(CONFDEL));
    SPIFFS.remove(CONFNAME);
    Serial.println(FPSTR(RESET));
    ESP.reset();   
  }
}
