More work on 1wire, added relais funcs