Rename function to read config file; add functionality to parse config