Updated command line interface with Ruby Option Parser and to fully func...

...tion from cli.