Fix calculations.
Use revisions to get total learn numbers.
Fix call to get statfile's revision.
Fix probability calculations.