renamed methods readConfig() and writeConfig() to read() and write()