indentation
shuffled around initialisation of ppcg solver and moved inner steps into a separate function