#20 -- Refactor Log and Cohort classes.

#20