add some comments in pb
remove unused stuff from andreas
this is duplicated by rest.js so i remove it