updated java wrapper to be inline with changes in library
preparatory to adding new functions