[MG] Modficiations to allow modified gravity calculations at late times. Enabled with compile-time flag _MODGRAV.