more clear error messages for missing keys

* output a list of missing keys
* added a couple of comments to make code more clear
  - P.S. I'd rather rename variable 'new' to validated.