Added some stuff to the header creation. I dont know how to add the number of channels into the header as hexadecimal, without converting it into a string. Maybe I should be doing it as a string entirely?