Adds lots of changes

* Adds constants for future features
* Adds counter() function
* Changes NUM_BATTERIES from 1 to counter()