Various qsol bug fixes

Fixes for several qsol bugs, finally up on github.