added yaml config support
code cleanup + tests
Merge pull request #46 from MercyfulFate/master

YAML Configuration Support