Simplifying JNA mappings (const char * -> String), some cleanup, a unit test.
more cleanup