equations updated.

Grid now outputs widths. Maths still a bit suspect.
Needs to be more dynamic.