Modified for charger input voltage check
Modified codes structure.
Modified codes structure.