Added zOptimize2(), and minor fixes

zOptimize2() is a wrapper around zOptimize() providing few control
features.