Added comments and changed some source lines.  Improved my own interpretability of the code.  Reduced the number of errors to a minimal amount.  Made options into a structure rather than a cell array.  This will need further work.