Added java documentation.