BATTERY MODELING AND ALGORITHM DEVELOPMENT WITH SIMULINK