adding java doc