Bugs with integral and engine now fixed.

The engine now runs with a printer of an integral. More testing
to come with other functions.