Converting the elements to structs with variable padding. Some weird stuff going on with the params to fwrite: docs say fwrite(thing,size, count,FILE) but I need to do fwrite(things,count, size, FILE) instead. Could be the facts it is late though.