Added tolerance based stopping criteria for NLOPT. It fixes issue with BOBYQA. Fixed typo in docs.
Merging