Added missing kerror print and added some comments.