Remove auto-generated docs
Refactor SM2 quality calculation