added Java docs