 }
 
 void setup() {
- 
-  // Put the motor to Arduino pin #9
-  myMotor.attach(8);
-  arm(); 
-  myMotor.write(70);
-   
-  // Required for I/O from Serial monitor
-  Serial.begin(57600);
-  Serial.println("Starting WiFi");
+    WiServer.enableVerboseMode(true);
 
-  // Initialize WiServer and have it use the sendMyPage function to serve pages
-  WiServer.init(sendMyPage);
-  
-  // Enable Serial output and ask WiServer to generate log messages (optional)
- // Serial.begin(9600);  // ...set up the serial ouput on 0004 style
-  //Serial.begin(57600);
-  WiServer.enableVerboseMode(false);
+    // Put the motor to Arduino pin #9
+    myMotor.attach(8);
+    arm(); 
+    myMotor.write(70);
+    // Required for I/O from Serial monitor
+    Serial.begin(57600);
+     Serial.println("Starting WiFi");
+
+     // Initialize WiServer and have it use the sendMyPage function to serve pages
+    WiServer.init(sendMyPage);
 }
 
 void loop()


void _webpageHelper() 
{
	WiServer.print ("<html>");
	WiServer.print ("<head>");
    WiServer.print ("<meta http-equiv=""content-type"" content=""text/html; charset=utf-8"" />");
    //WiServer.print ("<meta http-equiv=""refresh"" content=""25;url=http://192.168.1.60"" />");
    WiServer.print ("<title>OneButtonAlert Device</title>");
    //WiServer.print ("<link rel=""stylesheet"" type=""text/css"" media=""One Button Alert"" href=""http://onebuttonalert.com/buttonpressed/demo.css"" />");
 
	WiServer.print ("</head>");
    WiServer.print ("<body><p align=""center"">");



// This is our page serving function that generates web pages
boolean sendMyPage(char* URL) 
{
    // Check if the requested URL matches "/"
    if (strcmp(URL, "/") == 0) {
        _webpageHelper();
        // URL was recognized
        return true;
    }
     
    if (strcmp (URL, "/?OPERATION=OFF") == 0) {
        thestart = 1;
        _webpageHelper();
        move_to_start();       
        return (true);
    }    


    if (strcmp (URL, "/?OPERATION=ON") == 0) {
        thestart = 0;
        _webpageHelper();
        move_to_end();
        return (true);
    }    
    
 
    if (strcmp (URL, "/?OPERATION=90") == 0) {
        thestart = 0;
        _webpageHelper(); 
        move_to_ninty();
        return (true);
    }    

    // URL not found
    return false;
