Reorganise to use the asset pipeline.
Allow adding of equations to the program.

This has exposed some bugs.