added Java doc