The sketch has now been completed with the code for the alarm clock! Buzzer problem, solved. The ADC reference when using the battery problem remains. Now using AVCC ref.