Force solver dialog to be modal rather than relying on default behaviour
Fix incorrect storage of coefficients as integers rather than doubles.

#1