Fix option parsing; fix wgt, whcih was inverted