08-01-16 Bug

Corrected a number of bugs related to the reading and editing of PG-files. The PG file was sometime not closed and blocked for further processing.

PEJ