Reading WAD header