Generalized example method test case runner

Now runs all tests in a declarative style, also header comment blocks
have been added to all files.