Update kAry.java

Bigfixes and a small bit cleanup