changes to thermostatic3wayValve

1) added conditional state and initial condition for k
2) added parameters for limit values of k