created config file reader and returned a doc.