Improve APIs, rename symbols, update to fresh Kotlin API.