This commit converts all Java code to Kotlin and improves the structure and performance of most rewritten parts.