major overhaul of the quality assurance scripts and plotting