Fixed a small issue of when we have successfully run a simulation and then want to run a simulation which requires too much memory: we were not resetting our graph panel and that obviously caused OpenCOR to crash (#112).
Some minor cleaning up.