added config file routines
Prefix recently added functions with `pe_`. Improve formatting.