added debug functions

Fixed a minor problem with obligatory fields.

Added debug functions _printValues and _printMetaField.