Added argparse, log functionality to printer()