Added option parsing.
Merge pull request #2 from indrif/optparse

Added option parsing.