separate run and config blocks into different modules for easier testing
Merge pull request #25 from franleplant/refactor3

separate run and config blocks into different modules for easier testing