minor clean up and converted to basic arg parsing, nothing fancy just move configuration out of the main class