Better error handling in the sample client.
Updated README.