basic electrochemistry implemented

Various changes to enable 1d plotting to work correctly