Formatted a little. Skimmed the options and set a couple of useful ones. Added the zopt function for testion options.