Simplified the client and commented the testing client to give some idea how to use it and what to give as params.