Finishing up a lot of utilities for the demo testing framework: matrices, initialization, program storage, etc.