rewrote MuinvPMLFull using loops for all the cyclic ic calculations