added JNI interface to library