 /*** RouterReset: test if internet is working; if not, reset router
-***/
-
+ *
+ * Karlduino, Dec 2013
+ *
+ * Parts taken from Arduino wifi examples:
+ *   WifiWebClient by dlf, srl, and Tom Igoe
+ *   WifiUdpNtpClient by Michael Margolis and Tom Igoe
+ *   SD/Datalogger by Tom Igoe
+ *
+ ***/
+
+#include <stdio.h>
 #include <SPI.h>
 #include <WiFi.h>
+#include <SPI.h>
+#include <WiFiUdp.h>
+#include <Time.h>
+
 
 // private info [made generic here]
 char ssid[] = "SSID";

    digitalWrite(yellowLed, HIGH);
    connect_to_server();
    digitalWrite(yellowLed, LOW);
  }
  
  lastConnected = client.connected();
  if(canConnect) {
    digitalWrite(greenLed, HIGH);

  }

}

void printWifiStatus() {
  // print the SSID of the network you're attached to:
