More debug & diagnostic messages.
Added NO_KEY for default values.

Also simplified generator of keys.h
Added default values.