Used getopts to parse the command line, added a model choice.