changed priority to be of type float and not int
program now opens decoding in binary