Fixed unpack-pbp.c

Closes #14, #13, #12, #11, #10