Inaccurate analog reading and interrupt problem

The maximum VREF is 5 volts. If you're running it on external power of suitable voltage and power, the default VREF should be very close to 5 volts. The problem comes when you run it on USB power which are frequently quite a way off from the 5 volt its supposed to be. (Mine runs at around 4.75 volts).