1-wire bugfixes, less busy waiting
1-wire cleanup