Added battery check
Removed TODO comment
Added a 1 second sleep, no need to spin so quickly
Made it possible to exit cleanly; perform proper intialization
Merge pull request #120 from whitingjp/battery_check

Battery check