doc update
destructor should be virtual
fix coverity scan defect
always add register text