script to wrap Prichard's structure from matlab.

uses function parameterization similar to that for
fP and so on.