Refactored and simplified some of the argparse code. Added option for info and debug logging levels