fixed build errors in nested dropout solver
some minor bug fixes
added convergence threshold and unit sweeping as parameters