added header struct

Signed-off-by: James Paton <jpaton2@gmail.com>
deleted a blank line

Signed-off-by: James Paton <jpaton2@gmail.com>
used big-endian ordering on header; move includes to top

Signed-off-by: James Paton <jpaton2@gmail.com>