Significant changes to ParseCfg. See top of the program for what spec it works