import threading

# Thread running server processing loop
class ServerThread(threading.Thread):
    def __init__(self, server):
        super(ServerThread, self).__init__()
        self.server = server
        self.running = True

    def run(self):
        while self.running:
            self.server.process(0.1)
    def stop(self):
        self.running = False


@@ -97,35 +97,408 @@
     
-def __init__(self, server):
+%22%22%22%0A    A helper class to run server in a thread.%0A%0A    The following snippet runs the server for 4 seconds and quit::%0A%0A        server = SimpleServer()%0A        server_thread = ServerThread(server)%0A        server_thread.start()%0A        time.sleep(4)%0A        server_thread.stop()%0A%0A    %22%22%22%0A    def __init__(self, server):%0A        %22%22%22%0A        :param server: :class:%60pcaspy.SimpleServer%60 object%0A        %22%22%22
 %0A   
@@ -608,32 +608,92 @@
  def run(self):%0A
+        %22%22%22%0A        Start the server processing%0A        %22%22%22%0A
         while se
@@ -741,16 +741,17 @@
 ss(0.1)%0A
+%0A
     def 
@@ -754,32 +754,91 @@
 def stop(self):%0A
+        %22%22%22%0A        Stop the server processing%0A        %22%22%22%0A
         self.run

add docstring