Added updateConfig option.
Handle unexpected data in config file.
Use 'close' rather than 'finish' event.
Tweak indentation.
Merge pull request #7 from reimund/master

Added updateConfig option.