Update pap documentation and examples
Remove extraneous assignment
Remove extraneous assignment
Remove unused assignment
Fix clang scan warnings

Which also highlighted a bug.  Apparently no one uses this module,
because pretty much any use of it would cause it to crash.