implemented isConnectedToSimpleSwitch
bug fix in isConnectedToSimpleSwitch and implemented connectUpTo
unused code and members were removed