Fixed license
Fixed error in header hashing for legacy file format