Updates code to add a button on pin 8, various other small improvements.