Added CSV export and changed options for -i and -o options from command ...

...line