Refactored Cnode so that I could write tests against it.  This mostly just affects the waiting time confidence interval stuff.