added a test to check that the CPML flags read from an external file make sense, and call a stop statement otherwise.
Also improved a few print statements and a few comments.