 			pollServer();
 		}
 
+		/**
+		 *
+		 * @param	req
+		 * @param	isPollResponse
+		 * @param	event
+		 */
 		private function httpError( req:XMLNode, isPollResponse:Boolean, event:FaultEvent ):void
 		{
 			disconnect();
-			dispatchError( "Unknown HTTP Error", event.fault.rootCause.text, "",
-						   -1 );
-		}
-
+			dispatchError( "Unknown HTTP Error", event.fault.rootCause.text, "", -1 );
+		}
+
+		/**
+		 *
+		 * @param	req
+		 * @param	isPollResponse
+		 * @param	event
+		 */
 		private function httpResponse( req:XMLNode, isPollResponse:Boolean, event:ResultEvent ):void
 		{
 			requestCount--;

				pollServer();
		}

		private function pollServer():void
		{
			//We shouldn't poll if the connection is dead, if we had requests to send instead, or if there's already one in progress

			request.resultFormat = HTTPService.RESULT_FORMAT_TEXT;
			request.contentType = "text/xml";

			var responseCallback:Callback = new Callback( this, httpResponse, data, isPoll );
			var errorCallback:Callback = new Callback( this, httpError, data, isPoll );

			request.addEventListener( ResultEvent.RESULT, responseCallback.call, false );
			request.addEventListener( FaultEvent.FAULT, errorCallback.call, false );

			request.send( data );

			var byteData:ByteArray = new ByteArray();
			byteData.writeUTFBytes(data.toString());
			
			var event:OutgoingDataEvent = new OutgoingDataEvent();
			event.data = byteData;
			dispatchEvent( event );
