Added debugging function

- first4Last4 displays first and last 4 bytes of a buffer
- examples included in example.cpp