Add lib.Config.write method
Modify lib.Config class, add public member field 'target'