Updated JNI for scanning library

all tests pass.