Cleaned up error output and added print outs for kparams

Some nice error output enhancements and a bug fix for the kparams dictionary issue.  I'll put up a pypi package, but I plan ot take it down once we get this merged.