basic electrochemistry implemented

Eventually, we'll want this to be cleaner/friendlier, but for now, it's the most straightforward way I could find to get it working