Save pv_ok and return -1/false where appropriate; fix pvdzerr; implement costhmomdisps and costhmomdisp.
Check PV existence and set pv_ok; last work on costh* and drop missdist.
costh* implementation and missdist dropped.