makes power.go a library, adds check_battery.go to use it
refac, adds Battery enum