Initial commit of functions from github.com/btracey/optimize

Add brief comments for exported fields explain their use/meaning.