Updated the example application and wrote documentation on the usage in
Java.