Added a notification to the user when the battery is low.

Following discussion on #115.
rename pref => pref_key ?