Add battery script
Fix script to deal with 1 and 3 digit percentages