added a test to check that the CPML flags read from an external file mak...

...e sense, and call a stop statement otherwise.

Also improved a few print statements and a few comments.