Add debug info
Updating test method for signature
New signature method for building strings
More debugging
Remove debuggin. Fixed error where the terminating \0 character was being overwritten in the header string.
Use snprintf where possible instead of sprintf.