Refactored command execution to object
Refactored config file to object