Progress on reference configuration.

Some cosmetic changes plus some analysis code.

At this point, I think the next thing to work on is modifying the step-dependent
DBC.