Improved writing the file with random numbers or bytes.
Got a problem with UInt48 comparasion with ulong and int. Pay attention to unit tests. They dont pass.