finished swapping endianness of header on read
Merge branch 'write_data' of github.com:jakelishman/ptw-tools into write_data

Conflicts:
	src/io.c
Merge branch 'write_data' of github.com:jakelishman/ptw-tools into write_data