Added support for --help and --version options.