Minor updates in logging and exceptions

* Wrapped long lines
* Including key names in exceptions thrown after a type mismatch
* Minor logging fixes