Changes to ensure that ADC is now sampling correctly. Differential still needs checking with a truly isolated power supply however, but other than that things appear to be accurate enough.