cleanup and renaming of variables and log messages
Merge branch 'agresti_coull'