Clean Up Global Variables

Move global variables to functions to reduce heap.  Make methanol output
pin PWM (analogWrite) rather than low/high (digitalWrite).