Added desired states that keep sending hardware changes until the hardware is in a desired state.  Several small bugfixes.