Cleaned things up a whole bunch; added GrammarProbHypothesis class, including a first attempt at its compute_likelihood function.