Started work on OOP-ing the script.
Modified code to use argparse instead of depcrecated optparse