Minor fixes of docopt as well as correct exit code.