Updated java api files based on latest schema and bugfixes