Fixed various bugs in inverseSolver and mainwindow

Not functioning correctly, but it no longer bombs with NaN values.