Added java doc