Some minor cleaning up.
Implemented the midpoint solver (closes #173).