add method to write configuration back to disk
Merge pull request #10 from fallenhitokiri/cfg-write

add method to write configuration back to disk