added argparse to handle the command line arguments
fixes a bug.
Merge pull request #43 from 183amir/master

Adds argparse to handle the command line arguments