Update code for Kotlin M9. fixes #8
Update some of the examples