commit for josh
fix checksum calculation
fixed footer generation