cleanup trap project code
use const qualifier where appropriate
rename some symbols to be more readable
reorder parameters that buffer pointer and buffere len are in this order
use void pointers for memory buffers in send/receive and put/get packet functions