added relay, fixed a bug found in light switch. added on/off sytlings on spst switch