improved version

1> Increased time delay between two consecutive checks so as to reduce the RAM usage on machine.
2> Made a loop so that it beeps continuously until u unplug the charger.