Convert UFXPrepare to Kotlin and add support for printing of index files.