Java API added
Java API migration to submodule
Small API fixes