Added an command line parser.

Fixed bug.