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

add method to write configuration back to disk