Fix example client.
Example program now reads user input in client mode.