Added EIS calculator before changes
tidied up the EIS calculator