improve code add java-docs
improve code add java-docs