Update zimcheck.cpp

Implemented flag checks.
The tests to be run can now be specified using flags.