refactoring arguments into separate file
refactored code, req should be runnable as a module or from command line