C routine registration + bugfix in samplePsPu