Finished JNI implementation and added Makefile