return status codes in mip_solve

closes #9