Add documentation for the exitflag in solver function