edit: update.rb, read,writeメソッドの引数にconfigを追加