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

Add blank lines after `Init` and `Finished`.