Much more generalised system putting almost all of the code into the
template files rather than the main standalone_cpp.py file