Insert sampling QA report functions

Insert and clean up sampling QA report functions