Changed cell voltage routine

Still has some bugs to squash.
Changes