Changed name of function
Added better check for mosek lp solver