Major rewrite and cleanup of Code
Major rewrite and cleanup of Code

 - adjusted all variables to be uppercase, instead of a mixture
 - replaced all usage of `...` with better use of $(...)
 - replaced echo $var|grep with bash here string: grep <<< $var
 - replaced the 12 variable declarations/tests with a for loop
 - try and reduce the amount of |'s used
 - used indirect variable references to make magic happen
 - added L/R/C differentiation for said variables
 - somehow it all magically works :)

duk242/AirPodsBatteryCLI