fix readme
MUST_NOT
factor cpp code a bit