added more gdb flags to Makefile
fixed a few warnings
correct trunc_length and data[] initialization
added more helpful output (now shows the appended message with correct padding)