Moved writing the config to its own file
Merge pull request #17 from turnerba/bat-write-config

Moved writing the config to its own file