Initialize cm_log_prob to 0 if class definitions are not given.
Pointer arguments declared const, in order to avoid assignment of string constant (default value) to a non-const char pointer.