moving function declarations to header
added some tests for jni methods //TODO: COMPILE for other operatng systems..done for mac