changed to argparse. Added multifile processing capability