Add some comments
Break out the Hysteria setup to a new function for readability
Add a check for the w1 devices on startup. And tidy up the code
Add helpers that allow divisions and multiplication with doubles
Tidy up some code