Updated source code to include more advance sample
And to allow bound-json client.