Revert changes made for cache system
!168 (merged) introduced a cache object to store and write quantities, as well as re-structured the simulation into lots of functions.
It turns out that these changes are detrimental to the maintenance of the simulator, and the development of new features. In the MR, we revert those changes (and keep them in the history to re-work them, if needed, at a later time).