Fixes for battery widget
Merge pull request #1 from jweslley/master

Fixes for battery widget