Fixed use of uninitialized variable warning in test program.
Added missing stdio include in test program.
Fixed implicit boxing and unboxing of Java Objects warning.
Added javadoc comments to prevent unused parameter warning.
Added javadoc comments to document methods used by JNI.