Moved config and argument parser to seperate module