implemented weights for $choose operator. modified spec, renamed "ratio" to "weights".