Started refactoring changes to calculating grammar loglikelihoods and estimating grammar parameters from a corpus.
Merge remote-tracking branch 'upstream/refactor' into refactor
use lenses for configuration, log to JSON