Added some more code for manipulating relays over serial. Do not use as-is for final products.