shuffle helper functions around, hopefully makes code more presentable, more comments etc.
parareal reverted to earlier working version