ENERGY MANAGEMENT SYSTEM EMS FOR SMART BATTERY CONTROL