config handling and some minor cleanup
Merge pull request #1 from chummm/add-config

config handling and some minor cleanup