Updated common read_cfg to use yaml module, added test