Refactoring a bit of code to introduce the optionparser
Loading config file but not reading any values
Refactoring to pass config options into methods instead of using globals
Reading the configuration from config file
fixes #7