A basic example of a quality control check

This is an attempt at an example of how a real quality control check program file might be structured to facilitate coding up of more complicated tests (issue #21). Feedback would be welcomed on whether this works as an example.