Refactor, mostly

also found a bug -- caching scores/trellises and adjusting for gene
choice probabilities weren't playing well together.