Change variable name to better reflect the data it holds
Add variable to track generator and battery bank state.
Add pseudo-code to setup and main loop