added getopt.

For parsing programm options.