abstract lset rates, modify state model

test state model inference with gamma