added toogle function to relay class, needed to switch the relay within the sketch