commit changes to kdm.h for error reporting

forgot to add these changes