cleaned up imports and unused variables
added generic type constraints
added setGlobal function
test cases for some clips jni functions
minor fixups
new test (EnvironmentTest)