Added JNI example, this is what usage hsould look like soon.