make JNI hooks public.
add explanatory notes on using JNI interface.