Updating JNI Headers and adding RS multithreaded functions