fixed some small but significant problems including accidentally refering to the variable 'pol' when I wanted 'policy' and leaving out the negative sign in the calculation of info content