Adding java doc