Initial attempt at updating the Java API
Text tests are passing
Updated Java api