implement readConfig() and loadConfig() add test.