- Added parameter to indicate whether we want to save the logfile or not (default no)
- Changed the name of the variable "Is_Charging"  by "BATTERY_IS_CHARGING"