Cleaned up error output and added print outs for kparams