Index: accounts.php
===================================================================
--- accounts.php	(revision 328c604ffc25812aa4372700f0d5093dfe26b939)
+++ accounts.php	(revision fa10ebfd442046a266f6c61190fa79eb9f262b74)
@@ -156,5 +156,5 @@
 						<select name="meraki_access" id="meraki_access">
 							<option value="full">Full</option>
-							<option value="full">Read-Only</option>
+							<option value="read-only">Read-Only</option>
 						</select>
 					</div>
Index: include.css
===================================================================
--- include.css	(revision 328c604ffc25812aa4372700f0d5093dfe26b939)
+++ include.css	(revision fa10ebfd442046a266f6c61190fa79eb9f262b74)
@@ -37,4 +37,22 @@
 }
 
+.meraki_success {
+	background-color: rgb(192, 255, 192);
+	font-color: rgb(0, 128, 0);
+	color: rgb(0, 128, 0);
+}
+
+.meraki_warning {
+	background-color: rgb(255, 255, 192);
+	font-color: rgb(128, 128, 0);
+	color: rgb(128, 128, 0);
+}
+
+.meraki_failure {
+	background-color: rgb(255, 192, 192);
+	font-color: rgb(128, 0, 0);
+	color: rgb(128, 0, 0);
+}
+
 .meraki_key {
 	display:none;
Index: include.js
===================================================================
--- include.js	(revision 328c604ffc25812aa4372700f0d5093dfe26b939)
+++ include.js	(revision fa10ebfd442046a266f6c61190fa79eb9f262b74)
@@ -171,4 +171,7 @@
 	status_update('Sorting and generating output...');
 	
+	sorted = orgs.sort(function(a, b) { return (a.name < b.name)?-1:((b.name < a.name)?1:0); });
+	orgs = sorted;
+
 	admins = group_orgs_by_admin();
 	
@@ -206,4 +209,6 @@
 		if ( orgs[k].administrator == "ERROR") {
 			$('#meraki_org_'+orgs[k].id).attr('disabled','disabled');
+			$('#meraki_org_output_'+orgs[k].id).html('Unable to read data');
+			$('#meraki_org_output_'+orgs[k].id).addClass('meraki_failure');
 		}
 		
@@ -212,4 +217,6 @@
 				if ( admins[admin_to_add][j].id == orgs[k].id ) {
 					$('#meraki_org_'+orgs[k].id).attr('disabled','disabled');
+					$('#meraki_org_output_'+orgs[k].id).html('Already an admin ('+admins[admin_to_add][j].orgAccess+')');
+					$('#meraki_org_output_'+orgs[k].id).addClass('meraki_success');
 				}
 			});
@@ -256,8 +263,10 @@
 function on_add_admin_success(r, org_id) {
 	$('#meraki_org_output_'+org_id).html('Success')
+	$('#meraki_org_output_'+org_id).addClass('meraki_success');
 }
 
 function on_add_admin_error(e, org_id) {
-	$('#meraki_org_output_'+org_id).html('Error: '+e)
+	$('#meraki_org_output_'+org_id).html('Error: '+e);
+	$('#meraki_org_output_'+org_id).addClass('meraki_failure');
 }
 
Index: include.php
===================================================================
--- include.php	(revision 328c604ffc25812aa4372700f0d5093dfe26b939)
+++ include.php	(revision fa10ebfd442046a266f6c61190fa79eb9f262b74)
@@ -48,4 +48,7 @@
 			case "add_org_admin":
 				echo ( add_org_admin($_POST['orgid'], $_POST['fname'], $_POST['email'], $_POST['orgaccess'], $key) );
+				break;
+			case "delete_org_admin":
+				echo ( delete_org_admin($_POST['orgid'], $_POST['adminid'], $key) );
 				break;
 			default:
@@ -128,4 +131,7 @@
 		global $SERVER;
 		global $API_VERSION;
+	
+		//TODO: Move to CURL
+
 		$opts = array(
 			'http'=>array(
@@ -148,32 +154,13 @@
 		global $SERVER;
 		global $API_VERSION;
-		$post_data = json_encode($data);
-		$opts = array(
-			'http'=>array(
-				'method'	=>	"POST",
-				'header'	=>	"X-Cisco-Meraki-API-Key: " . $key . "\r\n" .
-								"Content-type: application/json\r\n",
-				'content'	=>	$post_data
-			)
-		);
-
-		$context = stream_context_create($opts);
-
-		// Open the file using the HTTP headers set above
-		$json = file_get_contents($SERVER . $API_VERSION . $call, false, $context);
-		//TODO:  Catch exceptions and return errors
-		if ( $json === false ) {
-			header('HTTP/1.1 400 Bad Request');
-		}
-		$resp = preg_replace ( '/"id":([0-9]+),/', '"id":"$1",', $json );
-		return $resp;
-		/*
+		
 		$ch = curl_init();
 		curl_setopt($ch, CURLOPT_URL,$SERVER . $API_VERSION . $call);
-		curl_setopt($ch, CURLOPT_POST, 1);
-		curl_setopt($ch, CURLOPT_POSTFIELDS,$data);  //Post Fields
+		curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
+		curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
+		curl_setopt($ch, CURLOPT_POSTFIELDS,json_encode($data));  //Post Fields
 		curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 		$headers = [	"X-Cisco-Meraki-API-Key: " . $key,
-						"Content-type: application/x-www-form-urlencoded"
+						"Content-type: application/json"
 					];
 		curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
@@ -185,5 +172,5 @@
 		curl_close ($ch);
 		header('HTTP/1.1 ' . $httpcode);
-		return $resp;*/
+		return $resp;
 	}
 	
@@ -192,18 +179,22 @@
 		global $SERVER;
 		global $API_VERSION;
-		$opts = array(
-			'http'=>array(
-				'method'	=>	"DELETE",
-				'header'	=>	"X-Cisco-Meraki-API-Key: " . $key . "\r\n"
-			)
-		);
-
-		$context = stream_context_create($opts);
-
-		// Open the file using the HTTP headers set above
-		$json = file_get_contents($SERVER . $API_VERSION . $call, false, $context);
-		//TODO:  Catch exceptions and return errors
-		//Successful HTTP Status: 204
-		//Return HTTP Code
+
+
+		$ch = curl_init();
+		curl_setopt($ch, CURLOPT_URL,$SERVER . $API_VERSION . $call);
+		curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE");
+		curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
+		curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
+		$headers = [	"X-Cisco-Meraki-API-Key: " . $key,
+						"Content-type: application/json"
+					];
+		curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
+
+		$json = curl_exec ($ch);
+		$httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
+		
+		$resp = preg_replace ( '/"id":([0-9]+),/', '"id":"$1",', $json );
+		curl_close ($ch);
+		header('HTTP/1.1 ' . $httpcode);
 		return $resp;
 	}
