cleaned up the client example a little bit to reflect how to store the connection. we do the same thing in the android code.