Fix a bug caused by NDEBUG macro; it is now removed.
Revise some descriptions of the enums.