Added a progress report in optimset and fixed a bug in optimset_months