Changed to use argparse instead of optparse and stdin as the source of t...

...he file contents