Developments in the n-electron Valence State Perturbation theory