Some minor cleaning up.
Implemented the Heun solver (closes #168).