updated Usage documentation
java code segment