Updated Matthias' calcPxCov to use a binary file.