add retreivePET table sample

some small fixes and another sample