Added java api created with jnaerator
Fix for invalid work item
Fixes for race conditions on mdhim_comm communicator