Converted print() statements to printf()
Added klog