Optimised ADC Pi library

Optimised the code within the ADC Pi library to make it more efficient.