voltage cutoff, and needs_charge adjustment

Added a check for battery voltage below 5.6 V, and fixed problem with
LED not turning off once runtime was over.