Move option parsing from CLI to a new class Options.
Merge pull request #543 from jonas054/options_class

Move option parsing from CLI to a new class Options.