Adding Java example for asynchronous publication

And README files from C++ and Java examples are been modified according to standar documentation.