Minor changes to adhoc-jni.c and spacing corrections on other files