PPACF code, by Yang Jiao, Elsebeth Schroeder, Per Hyldgaard; plus some minor updates to the documentation