Remove debuggin. Fixed error where the terminating \0 character was being overwritten in the header string.