Cleaned up code and added some comments to the ADC interrupt