add argparse for running receiver.py as a standalone.  Add write to file capability