Check if reassembled file has the correct hash (sanity check)

Also refactored CorrectHash