modified code with new makefile and code changes

added messaging facility and way to enter command line arguments for
providing testCases names. Implemented Factory to provide of testcase
instance.