Add automatic write of config file
Merge pull request #5 from KarimG94/master

Automatic write of config file