Added function for decoding commandline options.
Added more code for command line parsing.
Futher improvements to commandlne parsing.
Added more parsing code.