Cleaned up cfgfile module.