Added java api created with jnaerator
Fix for invalid work item
Fixes for race conditions on mdhim_comm communicator
A few memory leaks were plugged
Abort if database can't be opened