CRC header check support plus minor changes

Created to try to solve my issue, but doesn't. Not sure if many programs add a CRC for the header. Not properly tested either (but also doesn't break anything).