Fixed compile errors in client. Updated readme for full examples.