Reduced the repetitiveness

We can use an array to help with this when the pattern is clear.  And
then we can use each to process output, or perhaps map to collect
results to be output later.  Output or whatever, really
Setup new file structure to allow for the use of mini tests.