Rearrange code.
Add parser and processing.

Still remaining: normalise the inequation.