Fixed pointer to data after debugging

[logging]
- fixed pointer to data after debugging

[forward, tlv]
- removed extra debugging

[pbuffer]
- added debugging functions