Put some comments and java-doc

To-do:
1) Java-doc
2) update the example use
Put some comments and java-doc

To-do:
1) Java-doc
2) update the example use