Added command-line parsing support for options, extended command-line help, etc.