battery gauge, minor improvements